package com.zyk.scaffold.tcp.holder;

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

@Component
public class PropertiesHolder implements EnvironmentAware {
    private static Environment environment;
    @Override
    public void setEnvironment(Environment environment) {
        PropertiesHolder.environment = environment;
    }

    public static Environment getEnvironment() {
        return environment;
    }
}
